package apiday01;

public class StartWithDemo {
    public static void main(String[] args) {
        String str = "abd";
        if(str.startsWith("ab") && str.endsWith("d")){
            System.out.println(1);

        }
    }
}
